package com.bajiao.entity.recharge;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 充值菜单
 * @Author: FanJq
 * @Date:   2024-03-17
 * @Version: V1.0
 */
@Data
@TableName("user_recharge_menu")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="user_recharge_menu对象", description="充值菜单")
public class RechargeMenu {

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id", required = true)
	private Integer id;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题", required = true)
	private String title;
	/**价格*/
	@Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格", required = true)
	private BigDecimal price;
	/**购买金币*/
	@Excel(name = "购买金币", width = 15)
	@ApiModelProperty(value = "购买金币", required = true)
	private BigDecimal amount;
	@ApiModelProperty(value = "赠送金币", required = true)
	private BigDecimal giveAmount;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true)
	private Date createTime;

	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间", required = true)
	private Date updateTime;

	/**删除状态（0-正常 1-已删除）*/
	@Excel(name = "删除状态（0-正常 1-已删除）", width = 15)
    @ApiModelProperty(value = "删除状态（0-正常 1-已删除）", required = true)
	private Integer delFlag;
}
